package liumengbaio.lolzhangyoubao.Activity.Activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import liumengbaio.lolzhangyoubao.R;

public class OtherQeustionActivity extends AppCompatActivity {
    private boolean flag = true;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_other_qeustion);
        findViewById(R.id.vedio_question).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (flag) {
                    findViewById(R.id.btn_video).setBackgroundResource(R.mipmap.album_photo_select);
                    flag = false;
                } else {
                    findViewById(R.id.btn_video).setBackgroundResource(R.mipmap.album_photo_unselect);
                    flag = true;
                }
            }
        });
        findViewById(R.id.edit_head_left_title).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
